package cn.jsj.fixed.asset;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.jsj.object.FrontFixedMoney;

/**
 * 查看固定资产资金情况
 * @author LI
 *
 */
 public class LookFixedAssetMoney extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
	 public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// 调试信息
		 cn.jsj.utils.SysLogger.PrintInfo("查看固定资产资金情况！！！！！！！！");

		 //获得资金情况对象
		 cn.jsj.dao.TblFixedAssetsDAO tfad=new cn.jsj.dao.TblFixedAssetsDAO();
		  cn.jsj.object.FrontFixedMoney ffm=tfad.getFixedAssetMoney();
		  //资金情况列表
		  java.util.List<FrontFixedMoney> ffmList=new java.util.LinkedList<FrontFixedMoney>();
		  ffmList.add(ffm);

		  //转换为JSON型数据
		  cn.jsj.utils.ProduceJsonData pjd=new cn.jsj.utils.ProduceJsonData();
		  String jsonString=pjd.jsonFromRecord(ffmList);

		  //输出流
		  java.io.PrintWriter out=response.getWriter();

		  //输出数据
		  out.println(jsonString);
		  out.flush();
		  out.close();
	}
}